<?php
/**
 * @link http://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

namespace app\assets;

use yii\web\AssetBundle;

/**
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
         	'css/site.css',
    		'css/font-awesome.min.css',
     		'css/ionicons.min.css',
     		'css/AdminLTE.css',
     		'css/custom.css',
    ];
    public $js = [
    		'js/AdminLTE/app.js',
    ];
    public $depends = [
        	'yii\web\YiiAsset',
       	    'yii\bootstrap\BootstrapAsset',
    		'yii\bootstrap\BootstrapPluginAsset',
    ];
    
    //导入当前页的功能js文件，注意加载顺序，这个应该最后调用
    public static function addPageScript($view, $jsfile) {
    	$view->registerJsFile($jsfile, [AppAsset::className(), 'depends' => 'app\assets\AppAsset']);
    }
    
    
    
}
